import type { LoginResult } from "@/types/login";
import { http } from "@/utils/http";

type loginParams = {
    code: string
    encryptedData: string
    iv: string
}

export const postLoginWxMinApi = (data: loginParams) => {
    return http<LoginResult>({
        method: 'POST',
        url: '/login/wxMin',
        data,
    })
}

export const postLoginWxMinSimpleAPI = (phoneNumber: string) => {
    return http<LoginResult>({
        method: 'POST',
        url: '/login/wxMin/simple',
        data: {
            phoneNumber
        }
    })
}